<!DOCTYPE html>
<html lang="cn" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>留言板</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/index.css}" />
<!--    <link rel="stylesheet" type="text/css" th:href="@{/plugins/bootstrap/css/bootstrap.css}" />-->
    <style>
        body{
            padding: 0;
            margin: 0;
            background-color: #282C34;
            color: #21252B;
            text-align: center;
        }
        h2{
            padding: 1% 0%;
            user-select:none; -webkit-user-select:none;/*取消复制功能*/
        }
        #main{
            margin: 10% 5% 0% 5%;
            background-color: #CCCCCC;
        }
        #main>div{
            text-align: left;
            padding: 0.5% 2%;
        }


        hr{
            margin: 20px 5%;
        }
    </style>
</head>
<body>
    <div id="main">
        <h2>留言板</h2>
        <div th:each="lw:${leaveWords}">
            <span th:text="${lw.id}"></span>
            <span th:text="${lw.timeStr}"></span>
            <span th:text="${lw.leaveWord}"></span>
        </div>
    </div>
<hr>
    <div>
        <form action="/leaveword" method="post">
            留言内容：<input type="text" name="leaveWord"/>
            显示昵称：<input type="text" name="name"/>
            <input type="reset" value="重置"/>
            <input type="submit" value="提交"/>
        </form>
    </div>
</body>
</html>